package com.hequ.merchant.banner.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 柯尊诚 on 2015/10/20.
 * kzc
 */
public class Banner implements Serializable {

    public enum Action {
        web("跳转到网页","web"),
        self("在当前应用中打开","self"),
        app("打开外部应用","app"),
        browser("在浏览器打开","browser"),
        none("无点击效果","none");


        public String title;
        public String value;

        Action(String title, String value) {
            this.title = title;
            this.value = value;
        }

        @Override
        public String toString() {
            return title;
        }
    }

    private String id;
    private String name;//标题；
    private String imageName;
    private String image;
    private String backGround;//图片背景颜色，默认“#fffffff”；
    private String position;//点击动作；
    private String action;//排序位置；
    private String url;
    private String enabled;//是否可用，0表示可用，1表示不可用，默认为0；
    private String memo;//备注;
    private List<Module> modules;//模块;
    private String createTime;
    private String updateTime;


    @Override
    public String toString() {
        return "Banner{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", imageName='" + imageName + '\'' +
                ", image='" + image + '\'' +
                ", backGround='" + backGround + '\'' +
                ", position='" + position + '\'' +
                ", action='" + action + '\'' +
                ", url='" + url + '\'' +
                ", enabled='" + enabled + '\'' +
                ", memo='" + memo + '\'' +
                ", modules='" + modules.toString() + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getBackGround() {
        return backGround;
    }

    public void setBackGround(String backGround) {
        this.backGround = backGround;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public List<Module> getModules() {
        return modules;
    }

    public void setModules(List<Module> modules) {
        this.modules = modules;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
}
